import Vue from 'vue'
import FastClick from 'fastclick'
import 'normalize.css'
import App from './App.vue'
import './assets/responsive'
// import './assets/global.css'
import './assets/global.styl'
import './assets/common.styl'
import router from './router'

import myDialog from '@/components/myDialog'
Vue.component('myDialog', myDialog)
import scrollView from "@/components/scrollView";
Vue.component('scrollView', scrollView)

if ('addEventListener' in document && 'ontouchstart' in window) {
  FastClick.prototype.focus = function (targetElement) {
    targetElement.focus()
  }
  document.addEventListener('DOMContentLoaded', function () {
    FastClick.attach(document.body)
  }, false)
}

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
